Skip to content

Always get diagnostics when emitting irrespective of whether its declaration only emit#21522

Merged
sheetalkamat merged 2 commits into
masterfrom
alwaysGetDiagnosticsWhenEmitting
Feb 1, 2018
Merged

Always get diagnostics when emitting irrespective of whether its declaration only emit#21522
sheetalkamat merged 2 commits into
masterfrom
alwaysGetDiagnosticsWhenEmitting

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

@sheetalkamat sheetalkamat commented Feb 1, 2018

The diagnostics reporting and expression resolution caching is quite intermingled at present.
Hence when we tried to get the declaration output without getting diagnostics, the resolution for functions return expression is cached but errors arent reported
Symbols arent marked as referenced. So at later time when trying to get the diagnostics since the expression resolution is cached, it doesnt even go through all checks
For now get diagnostics irrespective of declaration only output to avoid this issue.
Fixes #21518

…aration only emit

The diagnostics reporting and expression resolution caching is quite intermingled at present.
Hence when we tried to get the declaration output without getting diagnostics, the resolution for functions return expression is cached but errors arent reported
Symbols arent marked as referenced. So at later time when trying to get the diagnostics since the expression resolution is cached, it doesnt even go through all checks
For now get diagnostics irrespective of declaration only output to avoid this issue.
Fixes #21518
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Feb 1, 2018

Please port this to release-2.7 as well.

…hats not possible anymore as the affected files would anyways be semantically checked

This is just part missed during revert of 0b79f4a
@sheetalkamat sheetalkamat merged commit f96c04c into master Feb 1, 2018
@sheetalkamat sheetalkamat deleted the alwaysGetDiagnosticsWhenEmitting branch February 1, 2018 01:31
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants